/**
 * 
 */
package org.rk.core.common.anno;

import java.lang.reflect.Field;

/**
 * 
 * @author:cavion
 * @描述：获取自定义注解的帮助类
 * 2016年8月29日 上午9:51:04
 */
public class SortableField {
	public SortableField() {
	}

	public SortableField(FieldMeta meta, Field field) {
		super();
		this.meta = meta;
		this.field = field;
		this.name = field.getName();
		this.type = field.getType();
	}

	public SortableField(FieldMeta meta, String name, Class<?> type) {
		super();
		this.meta = meta;
		this.name = name;
		this.type = type;
	}

	private FieldMeta meta;
	private Field field;
	private String name;
	private Class<?> type;

	public FieldMeta getMeta() {
		return meta;
	}

	public void setMeta(FieldMeta meta) {
		this.meta = meta;
	}

	public Field getField() {
		return field;
	}

	public void setField(Field field) {
		this.field = field;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Class<?> getType() {
		return type;
	}

	public void setType(Class<?> type) {
		this.type = type;
	}
}
